package cn.wsalix.templet.entity;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;

import lombok.Data;
import lombok.EqualsAndHashCode;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import cn.anlaser.entity.SimpleEntity;

/**
 * @author jskyme 模板位置
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "PAGE_DATE")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@EntityListeners({ AuditingEntityListener.class })
@Data
@EqualsAndHashCode(callSuper = false)
public class PageData extends SimpleEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2275893724710915295L;
	private String dataCode;//
	
	private String beanName;//
	private boolean single;//是否单条记录
	
	private String methodName;//

	/**
	 * 请求参数条件
	 * 1,单篇文章ID
	 * 2,多篇文章分类ID
	 * 3,单个菜单ID
	 * 4,多个菜单父ID
	 * 5,广告图文组父ID
	 * 选择Category时，保存分类Code
	 */
	private String  paraName;
	
	/**
	 * 获取的记录个数
	 */
	private int resultSize;
	// 位置对应数据
	// 菜单
	// 文章列表
	// 文章分类
	// 广告

}
